﻿using System;
using System.Collections.Generic;
namespace UtilEditors
{
    public class InspectorCom<T> : Inspector where T : UnityEngine.Object
    {
        public List<T> component = new List<T>();
        public override void SelectionChange()
        {
            base.SelectionChange();
            component.Clear();
            for (int i = 0; i < GetComponent.Count; i++)
            {
                component.Add(GetComponent[i] as T);
            }
        }
        public override Type GetInspectorType()
        {
            return typeof(T);
        }
    }

}
